package cn.edu.sdjzu.xg.bysj.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Collection;
/**
 * 表示学生提交的选择导师的志愿。
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class ApplicationForSupervisor implements Comparable<ApplicationForSupervisor>, Serializable {
    private Integer id;
    //自我介绍
    private String selfIntroduction;
    //填写志愿的学生
     private Student student;
     //年份
     private int year;
    //志愿集合
    private Collection<ApplicationForSupervisorEntry> applicationForSupervisorEntries;


    @Override
     public int compareTo(ApplicationForSupervisor applicationForSupervisor) {
         return this.id - applicationForSupervisor.id;
     }
    @Override
    public String toString(){
        return "Student{" +
                "id=" + id + '\'' +
                ", selfIntroduction=" + selfIntroduction +'\''+
                ", student="+ student +'\''+
                ", year="+year;
    }
}
